<?php
class CommonModel extends AdvModel{
    
    function oneError(){
        $dberror=$this->getDbError();
        $error=$this->getError();
        if(!empty($dberror)){
            return $dberror;
        }elseif(!empty($error)){
            return $error;
        }else{
            return '未知错误';
        }
    }
}
